package com.hqd.ch03.v46.format;

import java.util.Locale;

@FunctionalInterface
public interface Printer<T> {

    /**
     * Print the object of type T for display.
     *
     * @param object the instance to print
     * @param locale the current user locale
     * @return the printed text string
     */
    String print(T object, Locale locale);

}
